package com.pc.admin.util;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author langyuanz
 */
@Data
public class PageDataEntity<T> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("总数")
    private long total;

    @ApiModelProperty("页大小")
    private long size;

    @ApiModelProperty("当前页")
    private long current;

    @ApiModelProperty("返回数据")
    private List<T> records;

    public PageDataEntity(long total, long size, long current, List<T> records) {
        this.total = total;
        this.size = size;
        this.current = current;
        this.records = records;
    }
}
